import 'package:flutter/material.dart';
import 'package:getwidget/getwidget.dart';

class LifeContent extends StatefulWidget {
  const LifeContent({Key? key}) : super(key: key);

  @override
  State<LifeContent> createState() => _LifeContentState();
}

class _LifeContentState extends State<LifeContent> {
  late TextEditingController searchController = TextEditingController();

  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    searchController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: GFAppBar(
        leading: GFButton(
          text: "地铁生活",
          onPressed: () {},
          type: GFButtonType.transparent,
        ),
        actions: <Widget>[
          GFIconButton(
            icon: const Icon(
              Icons.search,
              color: Colors.white,
            ),
            onPressed: () {},
            type: GFButtonType.transparent,
          ),
        ],
      ),
      body: ListView(
        children: [
          const GFCard(
             boxFit: BoxFit.cover,
            titlePosition: GFPosition.start,
            showOverlayImage: true,
            imageOverlay: AssetImage(
               'assets/launcher/launcher.png',
           
            ),
            title: GFListTile(
              titleText: '引领行业发展方向',
              subTitleText: "leading",
            ),
            
          ),
          GFCard(
            boxFit: BoxFit.cover,
            title: GFListTile(
              titleText: '社区生活',
              color: Theme.of(context).primaryColor,
            ),
            content: Column(
              children: [
                Row(
                  mainAxisAlignment: MainAxisAlignment.spaceAround,
                  children: const [
                    Tab(
                      icon: Icon(Icons.record_voice_over),
                      child: Text(
                        '物业门禁',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.airplane_ticket),
                      child: Text(
                        '停车缴费',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.location_city),
                      child: Text(
                        '物业缴费',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.card_giftcard),
                      child: Text(
                        '房屋报修',
                      ),
                    ),
                  ],
                ),
                Row(
                  mainAxisAlignment: MainAxisAlignment.spaceAround,
                  children: const [
                    Tab(
                      icon: Icon(Icons.record_voice_over),
                      child: Text(
                        '置业签约',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.airplane_ticket),
                      child: Text(
                        '置业交付',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.location_city),
                      child: Text(
                        '业主认证',
                      ),
                    ),
                    Tab(
                      icon: Icon(Icons.card_giftcard),
                      child: Text(
                        '置业咨询',
                      ),
                    ),
                  ],
                ),
              ],
            ),
          ),
          GFCard(
            boxFit: BoxFit.cover,
            title: const GFListTile(
              titleText: '周边生活',
              icon: Icon(Icons.arrow_forward),
            ),
            content: Column(
              children: const [],
            ),
          ),
        ],
      ),
    );
  }
}
